package com.suineg.pms.entity.fee;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.suineg.pms.entity.IdEntity;


/**
 *方案与基准的中间表
 *@author Suine
 */
@Entity
@Table(name = "pms_plan_scale")
public class PlanScal extends IdEntity{
	/** 方案 */
	private FeePlan feePlan;
	/** 基准 */
	private FeeScal feeScal;
	/** 数量 */
	private Long count;
	/** 周期 */
	private Long cycle;
	
	@ManyToOne
	@JoinColumn(name = "plan_id")
	public FeePlan getFeePlan() {
		return feePlan;
	}
	public void setFeePlan(FeePlan feePlan) {
		this.feePlan = feePlan;
	}
	@ManyToOne
	@JoinColumn(name = "scale_id")
	public FeeScal getFeeScal() {
		return feeScal;
	}
	public void setFeeScal(FeeScal feeScal) {
		this.feeScal = feeScal;
	}
	public Long getCount() {
		return count;
	}
	public void setCount(Long count) {
		this.count = count;
	}
	public Long getCycle() {
		return cycle;
	}
	public void setCycle(Long cycle) {
		this.cycle = cycle;
	}

}

